<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: heap.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00698.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">heap.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00698_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ab2a1196af656f15f16f8593827fec182"><td class="memItemLeft" align="right" valign="top">NTSTATUS&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00698.html#ab2a1196af656f15f16f8593827fec182">UserCommitMemory</a> (PVOID pBase, PVOID *ppCommit, PULONG pCommitSize)</td></tr>
<tr class="separator:ab2a1196af656f15f16f8593827fec182"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74b16ad9154f24c6f8e1408a92bb5570"><td class="memItemLeft" align="right" valign="top">PVOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00698.html#a74b16ad9154f24c6f8e1408a92bb5570">UserCreateHeap</a> (HANDLE hSection, PVOID pvBaseAddress, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwSize)</td></tr>
<tr class="separator:a74b16ad9154f24c6f8e1408a92bb5570"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="ab2a1196af656f15f16f8593827fec182"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2a1196af656f15f16f8593827fec182">&#9670;&nbsp;</a></span>UserCommitMemory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NTSTATUS UserCommitMemory </td>
          <td>(</td>
          <td class="paramtype">PVOID&#160;</td>
          <td class="paramname"><em>pBase</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PVOID *&#160;</td>
          <td class="paramname"><em>ppCommit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PULONG&#160;</td>
          <td class="paramname"><em>pCommitSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00698_source.html">heap.c</a> 第 <a class="el" href="a00698_source.html#l00015">15</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;{</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <a class="code" href="a02901.html">PDESKTOPVIEW</a> pdv;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwCommitOffset;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <a class="code" href="a02809.html">PWINDOWSTATION</a> pwinsta;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <a class="code" href="a02801.html">PDESKTOP</a> pdesk;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    PBYTE pUserBase;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">     * If this is a system thread, we have no view of the desktop</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">     * and must map it in.  Fortunately, this does not happen often.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">if</span> (IS_SYSTEM_THREAD(PsGetCurrentThread())) {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">         * Find the desktop that owns the section.</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keywordflow">for</span> (pwinsta = <a class="code" href="a03257.html#ad9f551216ba73947832de96844110fca">grpwinstaList</a>; pwinsta; pwinsta = pwinsta-&gt;<a class="code" href="a02809.html#acdccfdf2387c6fcf147bba1ee15d5939">rpwinstaNext</a>) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <span class="keywordflow">for</span> (pdesk = pwinsta-&gt;<a class="code" href="a02809.html#aafbda282c78d875d4491cf817366dc1b">rpdeskList</a>; pdesk; pdesk = pdesk-&gt;<a class="code" href="a02801.html#ace92d08d0736aef3f0b73273a6e3e5f7">rpdeskNext</a>) {</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                <span class="keywordflow">if</span> (pdesk-&gt;<a class="code" href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">pDeskInfo</a>-&gt;<a class="code" href="a02609.html#a75669b702bc6c694a3cf53480238cd1e">pvDesktopBase</a> == pBase)</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                    <span class="keywordflow">goto</span> FoundIt;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;FoundIt:</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordflow">if</span> (pwinsta == NULL)</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <span class="keywordflow">return</span> STATUS_NO_MEMORY;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">         * Map the section into the current process and commit the</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">         * first page of the section.</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        dwCommitOffset = (ULONG)((PBYTE)*ppCommit - (PBYTE)pBase);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        Status = <a class="code" href="a00680.html#a77b4a808c8bc2285c46b6cf1b1415958">CommitReadOnlyMemory</a>(pdesk-&gt;<a class="code" href="a02801.html#ac80b7bb1e8592073677fd05e42351a80">hsectionDesktop</a>, <a class="code" href="a03665.html#a7d467c1d283fdfa1f2081ba1e0d01b6e">PAGE_SIZE</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                dwCommitOffset);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">         * Find the current process&#39; view of the desktop</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">for</span> (pdv = PpiCurrent()-&gt;pdvList; pdv != NULL; pdv = pdv-&gt;<a class="code" href="a02901.html#a0152e70c5e5553e5908f9f08658f95c8">pdvNext</a>) {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <span class="keywordflow">if</span> (pdv-&gt;<a class="code" href="a02901.html#add45d38ef4796b9269d0351169ba817c">pdesk</a>-&gt;<a class="code" href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">pDeskInfo</a>-&gt;<a class="code" href="a02609.html#a75669b702bc6c694a3cf53480238cd1e">pvDesktopBase</a> == pBase)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pdv);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">         * Commit the memory</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        pUserBase = (PVOID)((PBYTE)*ppCommit - pdv-&gt;<a class="code" href="a02901.html#acbf48a5d29178c49f4dd41065b66ed17">ulClientDelta</a>);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        Status = ZwAllocateVirtualMemory(NtCurrentProcess(),</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                                        &amp;pUserBase,</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                                        0,</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                                        pCommitSize,</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                                        MEM_COMMIT,</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                                        PAGE_EXECUTE_READ</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                        );</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span> (NT_SUCCESS(Status))</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            *ppCommit = (PVOID)((PBYTE)pUserBase + pdv-&gt;<a class="code" href="a02901.html#acbf48a5d29178c49f4dd41065b66ed17">ulClientDelta</a>);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">return</span> Status;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00680_source.html#l00260">CommitReadOnlyMemory()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a03257_source.html#l00182">grpwinstaList</a>, <a class="el" href="a00899_source.html#l01723">tagDESKTOP::hsectionDesktop</a>, <a class="el" href="a03665_source.html#l01258">PAGE_SIZE</a>, <a class="el" href="a00899_source.html#l02378">tagDESKTOPVIEW::pdesk</a>, <a class="el" href="a00899_source.html#l01706">tagDESKTOP::pDeskInfo</a>, <a class="el" href="a00899_source.html#l02377">tagDESKTOPVIEW::pdvNext</a>, <a class="el" href="a00365_source.html#l01601">tagDESKTOPINFO::pvDesktopBase</a>, <a class="el" href="a00899_source.html#l01746">tagWINDOWSTATION::rpdeskList</a>, <a class="el" href="a00899_source.html#l01709">tagDESKTOP::rpdeskNext</a>, <a class="el" href="a00899_source.html#l01745">tagWINDOWSTATION::rpwinstaNext</a>, <a class="el" href="a00899_source.html#l02379">tagDESKTOPVIEW::ulClientDelta</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00698_source.html#l00082">UserCreateHeap()</a>.</p>

</div>
</div>
<a id="a74b16ad9154f24c6f8e1408a92bb5570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74b16ad9154f24c6f8e1408a92bb5570">&#9670;&nbsp;</a></span>UserCreateHeap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PVOID UserCreateHeap </td>
          <td>(</td>
          <td class="paramtype">HANDLE&#160;</td>
          <td class="paramname"><em>hSection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PVOID&#160;</td>
          <td class="paramname"><em>pvBaseAddress</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00698_source.html">heap.c</a> 第 <a class="el" href="a00698_source.html#l00082">82</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    PVOID pUserBase;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    ULONG ulViewSize;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    LARGE_INTEGER liOffset;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    PEPROCESS Process = PsGetCurrentProcess();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    RTL_HEAP_PARAMETERS HeapParams;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    NTSTATUS Status;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">     * Map the section into the current process and commit the</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">     * first page of the section.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    ulViewSize = 0;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    liOffset.QuadPart = 0;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    pUserBase = NULL;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    Status = MmMapViewOfSection(hSection, Process,</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            &amp;pUserBase, 0, <a class="code" href="a03665.html#a7d467c1d283fdfa1f2081ba1e0d01b6e">PAGE_SIZE</a>, &amp;liOffset, &amp;ulViewSize, ViewUnmap,</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            SEC_NO_CHANGE, PAGE_EXECUTE_READ);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">if</span> (!NT_SUCCESS(Status))</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    MmUnmapViewOfSection(Process, pUserBase);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">     * We now have a committed page to create the heap in.</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    RtlZeroMemory(&amp;HeapParams, <span class="keyword">sizeof</span>(HeapParams));</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    HeapParams.Length = <span class="keyword">sizeof</span>(HeapParams);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    HeapParams.InitialCommit = <a class="code" href="a03665.html#a7d467c1d283fdfa1f2081ba1e0d01b6e">PAGE_SIZE</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    HeapParams.InitialReserve = dwSize;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    HeapParams.CommitRoutine = <a class="code" href="a00698.html#ab2a1196af656f15f16f8593827fec182">UserCommitMemory</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> RtlCreateHeap(</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                HEAP_NO_SERIALIZE | HEAP_ZERO_MEMORY,</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                pvBaseAddress,</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                dwSize,</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                <a class="code" href="a03665.html#a7d467c1d283fdfa1f2081ba1e0d01b6e">PAGE_SIZE</a>,</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                NULL,</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                &amp;HeapParams</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                );</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03665_source.html#l01258">PAGE_SIZE</a> , 以及 <a class="el" href="a00698_source.html#l00015">UserCommitMemory()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00656_source.html#l01841">CreateDesktopHeap()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00680_html_a77b4a808c8bc2285c46b6cf1b1415958"><div class="ttname"><a href="a00680.html#a77b4a808c8bc2285c46b6cf1b1415958">CommitReadOnlyMemory</a></div><div class="ttdeci">NTSTATUS CommitReadOnlyMemory(HANDLE hSection, ULONG cbCommit, DWORD dwCommitOffset)</div><div class="ttdef"><b>Definition:</b> <a href="a00680_source.html#l00260">ex.c:260</a></div></div>
<div class="ttc" id="aa02809_html_acdccfdf2387c6fcf147bba1ee15d5939"><div class="ttname"><a href="a02809.html#acdccfdf2387c6fcf147bba1ee15d5939">tagWINDOWSTATION::rpwinstaNext</a></div><div class="ttdeci">struct tagWINDOWSTATION * rpwinstaNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01745">userk.h:1745</a></div></div>
<div class="ttc" id="aa02801_html"><div class="ttname"><a href="a02801.html">tagDESKTOP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01703">userk.h:1703</a></div></div>
<div class="ttc" id="aa02901_html"><div class="ttname"><a href="a02901.html">tagDESKTOPVIEW</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02376">userk.h:2376</a></div></div>
<div class="ttc" id="aa02801_html_a76d4881aa4c15330103e83a80e6b5dc7"><div class="ttname"><a href="a02801.html#a76d4881aa4c15330103e83a80e6b5dc7">tagDESKTOP::pDeskInfo</a></div><div class="ttdeci">PDESKTOPINFO pDeskInfo</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01706">userk.h:1706</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa03257_html_ad9f551216ba73947832de96844110fca"><div class="ttname"><a href="a03257.html#ad9f551216ba73947832de96844110fca">grpwinstaList</a></div><div class="ttdeci">PWINDOWSTATION grpwinstaList</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00182">kernel/globals.c:182</a></div></div>
<div class="ttc" id="aa02609_html_a75669b702bc6c694a3cf53480238cd1e"><div class="ttname"><a href="a02609.html#a75669b702bc6c694a3cf53480238cd1e">tagDESKTOPINFO::pvDesktopBase</a></div><div class="ttdeci">PVOID pvDesktopBase</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01601">user.h:1601</a></div></div>
<div class="ttc" id="aa02809_html"><div class="ttname"><a href="a02809.html">tagWINDOWSTATION</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01744">userk.h:1744</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa02901_html_acbf48a5d29178c49f4dd41065b66ed17"><div class="ttname"><a href="a02901.html#acbf48a5d29178c49f4dd41065b66ed17">tagDESKTOPVIEW::ulClientDelta</a></div><div class="ttdeci">ULONG ulClientDelta</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02379">userk.h:2379</a></div></div>
<div class="ttc" id="aa03665_html_a7d467c1d283fdfa1f2081ba1e0d01b6e"><div class="ttname"><a href="a03665.html#a7d467c1d283fdfa1f2081ba1e0d01b6e">PAGE_SIZE</a></div><div class="ttdeci">#define PAGE_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="a03665_source.html#l01258">kernel/server.c:1258</a></div></div>
<div class="ttc" id="aa02901_html_add45d38ef4796b9269d0351169ba817c"><div class="ttname"><a href="a02901.html#add45d38ef4796b9269d0351169ba817c">tagDESKTOPVIEW::pdesk</a></div><div class="ttdeci">PDESKTOP pdesk</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02378">userk.h:2378</a></div></div>
<div class="ttc" id="aa02801_html_ace92d08d0736aef3f0b73273a6e3e5f7"><div class="ttname"><a href="a02801.html#ace92d08d0736aef3f0b73273a6e3e5f7">tagDESKTOP::rpdeskNext</a></div><div class="ttdeci">struct tagDESKTOP * rpdeskNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01709">userk.h:1709</a></div></div>
<div class="ttc" id="aa00698_html_ab2a1196af656f15f16f8593827fec182"><div class="ttname"><a href="a00698.html#ab2a1196af656f15f16f8593827fec182">UserCommitMemory</a></div><div class="ttdeci">NTSTATUS UserCommitMemory(PVOID pBase, PVOID *ppCommit, PULONG pCommitSize)</div><div class="ttdef"><b>Definition:</b> <a href="a00698_source.html#l00015">heap.c:15</a></div></div>
<div class="ttc" id="aa02809_html_aafbda282c78d875d4491cf817366dc1b"><div class="ttname"><a href="a02809.html#aafbda282c78d875d4491cf817366dc1b">tagWINDOWSTATION::rpdeskList</a></div><div class="ttdeci">struct tagDESKTOP * rpdeskList</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01746">userk.h:1746</a></div></div>
<div class="ttc" id="aa02901_html_a0152e70c5e5553e5908f9f08658f95c8"><div class="ttname"><a href="a02901.html#a0152e70c5e5553e5908f9f08658f95c8">tagDESKTOPVIEW::pdvNext</a></div><div class="ttdeci">struct tagDESKTOPVIEW * pdvNext</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l02377">userk.h:2377</a></div></div>
<div class="ttc" id="aa02801_html_ac80b7bb1e8592073677fd05e42351a80"><div class="ttname"><a href="a02801.html#ac80b7bb1e8592073677fd05e42351a80">tagDESKTOP::hsectionDesktop</a></div><div class="ttdeci">HANDLE hsectionDesktop</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01723">userk.h:1723</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00698.html">heap.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
